{% extends "private_messages/base_pm.html" %}
{% load i18n %}
{% load jalali_view %}

{% block title %}{% trans "Message Details" %} - {{ message.subject }}{% endblock %}
{% block page_title %}{% trans "Message Details" %} - {{ message.subject }}{% endblock %}

{% block pm_content %}
<div class="pm">
	<div class="actions">
		{% ifequal message.recipient.pk user.pk %}
		<a href="{% url messages_reply message.id %}">{% trans "Reply" %}</a>
		&nbsp;&bull;&nbsp;
		{% endifequal %}
		<a href="{% url messages_delete message.id %}" >{% trans "Delete" %}</a>
	</div>
	<br class="clear"/>
	<br class="clear"/>
	<h3>{{ message.subject }}</h3>
	<span class="date">{% jalali_view message.sent_at %}</span>
	<span class="sender">{{ message.sender }}</span>
	<br class="clear"/>
	<br class="clear"/>
	<p class="message">{{ message.body|linebreaksbr }}</p>
	<br class="clear"/>
	<br class="clear"/>
	<div class="actions">
		{% ifequal message.recipient.pk user.pk %}
		<a href="{% url messages_reply message.id %}">{% trans "Reply" %}</a>
		&nbsp;&bull;&nbsp;
		{% endifequal %}
		<a href="{% url messages_delete message.id %}" >{% trans "Delete" %}</a>
	</div>
</div>
{% endblock pm_content %}